/** 尺寸 */
export default class Size {
    /**
     * 宽度 x
     */
    public width: number;
    /**
     * 高度 y
     */
    public height: number;
    /**
     * z
     */
    public high: number;
    constructor(width: number, height: number, high: number=0) {
        this.width = width;
        this.height = height;
        this.high = high;
    };
    /** 判断是否相等 */
    public equals(size: Size): boolean {
        return this.width == size.width && this.height == size.height && size.high == size.high;
    };
    public getWidth() {
        return this.width;
    }
    public getHeight() {
        return this.height;
    }
    public toString(): string {
        return this.width + ',' + this.height;
    }
}